docker secret
命令手册Manage Docker swarm secrets. More information: https://docs.docker.com/engine/reference/commandline/secret/.
{{command}} | docker secret create {{secret_name}} -
docker secret create {{secret_name}} {{path/to/file}}
docker secret ls
docker secret inspect --pretty {{secret_name1 secret_name2 ...}}
docker secret rm {{secret_name1 secret_name2 ...}}